// 强制使用pnpm包管理工具
if (!/pnpm/.test(import.meta.env.npm_execpath || '')) {
  console.warn(
    `\u001b[33mThis repository must using pnpm as the package manager` +
      `for scripts to work properly.\u001b[39m\n`,
  )
  import.meta.env.exit(1)
}
